package com.travelmood.mapper;

import com.travelmood.pojo.Diary;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface DiaryMapper {
    void insertdiary(Diary diary);
    void insertDiaryPlace(Map params);
    List<Diary> getdiarysByUserId(Integer id);
    void updatediary(Diary diary);

    Diary findDiaryById(Integer diaryId);

    void deleteDiaryById(Integer diaryId);

    Integer getPlaceIdById(Integer diaryId);
}
